package com.bw.lyc.mvp.base.presenter;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

/**
 * P层顶层接口，定义P层公共部分
 *
 * */
//使用lifecycle框架实现presenter下方法与activity或fragment生命周期绑定
public interface IPresenter extends LifecycleObserver {
    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    void onDestroy();
}
